<?php
namespace App\Modules\Relationship\Enums;

class ConstEnum
{
    const FRIEND = 1; // 关系-好友
    const SWEET = 2;  // 关系-密友
    const COUPLE = 3; // 关系-CP

    const SWEET_UPPER_LIMIT = 1000;
    const COUPLE_UPPER_LIMIT = 1000;


    const COUPLE_INVITE_LIST_TIPS =  "请密度≥" . self::COUPLE_UPPER_LIMIT . "时, 可发起CP邀请对方，同意后双方成为CP关系";
    const SWEET_INVITE_LIST_TIPS =  "请密度≥" . self::SWEET_UPPER_LIMIT . "时, 可发起密友邀请对方，同意后双方成为密友关系";

    const COUPLE_RULE_URL = 'http://tutu-files.xwak.cn/app/new_realtion_rule/index.html#/?pageType=2';
    const SWEET_RULE_URL = 'http://tutu-files.xwak.cn/app/new_realtion_rule/index.html#/?pageType=3';
    const FRIEND_RULE_URL = 'http://tutu-files.xwak.cn/app/new_realtion_rule/index.html#/?pageType=1';

    const INVITE_SWEET_FRIEND_POSITION_PRICE = 5200; // 密友扩展位置卡价格

    const SWEET_CARD_PROP_ID = 903;  // 道具密友卡ID

    const INVITE_SWEET_DIAMOND_NUM = 999; // 道具密友邀请卡价格

    // 请求过期时间
    const REQ_DELAY_TIME = 86390 * 1000;
    const TASK_DELAY_TIME = 3 * 60 * 1000;

    const FRIEND_CAHT_NUM_KEY_TMP = "FRIEND:CAHT:NUM:KEY:%d:%d";
    const RELATION_GIFT_NUM_KEY_TMP = "RESATION:GIFT:NUM:KEY:%s:%d";
    const ROOM_PEIBAN_NUM_KEY = "RESATION:PEIBAN:NUM:KEY:%s:%d:%d";// 废弃
    const ROOM_PEIBAN_TIME_KEY = "RESATION:PEIBAN:TIME:KEY:%s:%d:%d"; // 房间内 好友陪伴起使时间

    const INTIMATE_ADD_PROP_ID = 14; // 亲密度直升卡ID #20

    const CP_GIFT_BANNER_MININUM_LEVEL = 7;

    const CP_UPGRADE_DISCOUNT_SWTICH = 1; // 信物升级开关 0-关，1-开

    const CP_UPGRADE_DISCOUNT_DATE = "2022-09-01"; // 信物升级优惠的最后日期

    const CP_UPGRADE_REGISTER_DATE = "2022-08-11"; // 信物升级优惠最后的结成CP日期

    const CP_SWEET_MIDDLE_URL = "/app/none/platform/sw_lily.svga";

    const CURRENT_VERSION_NO = "2.4.0";

    # 陪伴任务增长值-每次执行添加分数值（x分/每3分钟）
    const PEIBAN_VAL= 1;

}
